<template>
  <section class="container">
    <span>L</span>
    <span>o</span>
    <span>a</span>
    <span>d</span>
    <span>i</span>
    <span>n</span>
    <span>g</span>
    <span>...</span>
  </section>
</template>
<style scoped>
section{
  color: #000;
  height: 200px;
  font-size: 80px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

@keyframes animate{
  0%, 100%{
    color: #fff;
    filter: blur(2px);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px #00b3ff,
      0 0 40px #00b3ff,
      0 0 80px #00b3ff,
      0 0 120px #00b3ff,
      0 0 200px #00b3ff,
      0 0 300px #00b3ff,
      0 0 300px #00b3ff;
  }
  25%, 75%{
    color: #000;
    filter: blur(0px);
    text-shadow: none;
  }
}

/* 2. 使用 var 变量 */
section span{
  animation: animate 4s linear infinite;
}

section span:nth-child(1){
  animation-delay: 0s;
}
section span:nth-child(2){
  animation-delay: 0.1s;
}
section span:nth-child(3){
  animation-delay: 0.2s;
}
section span:nth-child(4){
  animation-delay: 0.3s;
}
section span:nth-child(5){
  animation-delay: 0.4s;
}
section span:nth-child(6){
  animation-delay: 0.5s;
}
section span:nth-child(7){
  animation-delay: 0.6s;
}
section span:nth-child(8){
  animation-delay: 0.7s;
}
</style>